package day1;

public class Account {
    //卡号
    private String id;
    //余额
    private   double balance;
    //对外
    public String getId(){
        return  id;
    }
    public   void  setId(String id){
        this.id = id;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }
    public  void show(){
        System.out.println("银行账户，卡号："+id+"余额："+this.balance);
        System.out.println("银行账户，卡号："+this.getId()+"余额："+getBalance());
    }
}
